package com.demo.service;
 
import org.springframework.ui.Model;
 
import javax.servlet.http.HttpServletResponse;
 
public interface FileService {
    /**
     *文件上传
     */
    void saveFile(byte[] file, String filePath, String fileName) throws Exception;
 
    /**
     *文件下载
     */
    void download(HttpServletResponse response, String filename, Model model);
}